/** 摇杆方向 */
export enum stickDirection {
    none,
    up,
    right,
    down,
    left
}
function getDirection(degree?: number) {
    if (typeIs(degree, 'nil')) return stickDirection.none
    if (degree < - 80 && degree > - 100) {
        return stickDirection.down
    }
    return stickDirection.none
}
/**
 * 摇杆工具类
 */
export const stickTools = {
    getDirection
}